package tgc.edu.yzy.repostory;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import tgc.edu.yzy.custom.CommonRepository;
import tgc.edu.yzy.entity.EimAdmin;
import tgc.edu.yzy.entity.TradingRecord;
@Repository
public interface TradingRecordRepository extends CommonRepository<TradingRecord, Integer>{
	
	@Modifying
	@Query(value="select max(a.id) from TradingRecord a")	 
	public Integer getIds();

	public Page<TradingRecord> findByEimadmins(Pageable pageable, EimAdmin id);

}
